<?php echo form_open(NULL, 'id="edit_account" class="ajaxform"'); ?>

<div style="width: 400px">
	
	<ol>
		
		<li>
			<label>E Posta</label>
			<input type="text" name="email" value="<?php echo $user->email; ?>" />
		</li>
		
		<li>
			<label>Şifremi Değiştirmek İstiyorum</label>
			<input type="checkbox" name="change_password" id="cpToggle" />
		</li>
		
		<div style="display:none;" id="change_password">
			<li>
				<label>Yeni Şifreniz</label>
				<input type="password" name="password" />
			</li>
			<li>
				<label>Yeni Şifrenizi Tekrar Girin</label>
				<input type="password" name="passwordconf" />
			</li>	
		</div>
		
		<li>
			<label></label>
			<input type="submit" value="Gönder" />
		</li>
		
	</ol>
	
</div>

<?php echo form_close(); ?>

<script type="text/javascript">

    jQuery('#cpToggle').click(function(){
    	
        if(jQuery(this).is(':checked')) {
            $('#change_password').stop(true,true).fadeIn();
            $.colorbox.resize();
        } else {
            $('#change_password').stop(true,true).hide();
            $.colorbox.resize();
        }
    });

</script>



